﻿@using Lavka.Core
@using Lavka.Models
@model IEnumerable<Lavka.Models.Products>

@if (Request.IsAuthenticated)
{
    <p>
        @Html.ActionLink("Создать товар", "Create")
    </p>
}
 
<script type="text/javascript">
    $(".article").corner();
</script>

@Html.Partial("ViewSelector", DisplayType.Galery)

<div id="productsGalery">
    @Html.Partial("ProductsGalery", Model)
</div>

<script type="text/javascript">
    $(document).ready(UpdateProductsGalery);
</script>